Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
Create free AWS Account at https://aws.amazon.com/
I would be creating a t2.medium ubuntu machine for this demo.
format = """ | |
[░▒▓](#a3aed2)\ | |
[ ](bg:#a3aed2 fg:#090c0c)\ | |
[](bg:#769ff0 fg:#a3aed2)\ | |
$directory\ | |
[](fg:#769ff0 bg:#394260)\ | |
$git_branch\ | |
$git_status\ | |
[](fg:#394260 bg:#212736)\ | |
$nodejs\ |
{ | |
"AF": "Afghanistan", | |
"AX": "Aland Islands", | |
"AL": "Albania", | |
"DZ": "Algeria", | |
"AS": "American Samoa", | |
"AD": "Andorra", | |
"AO": "Angola", | |
"AI": "Anguilla", | |
"AQ": "Antarctica", |
If you want to use Bitwarden CLI for ssh
have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS
Wirtten and tested on macOS Ventura
To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.
If you want to use Touch ID have a look at: How to use use Bitwarden CLI with macOS Touch ID
Wirtten and tested on macOS Ventura
Before you can use Bitwarden CLI for your SSH private keys you have to add them to your Bitwarden account. Just create a normal login. The name, username and URI fields doesn't matter for my functions.
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.Experimental; | |
using UnityEngine; | |
public class DumpAllAssetPaths : MonoBehaviour | |
{ | |
[MenuItem("AssetDatabase/OutputAllLibraryPaths")] | |
public static void OutputPathToAssets() |
1.2.4 Apr 15, 2022
Removed
Author | Quote | |
---|---|---|
Thomas Edison | Genius is one percent inspiration and ninety-nine percent perspiration. | |
Yogi Berra | You can observe a lot just by watching. | |
Abraham Lincoln | A house divided against itself cannot stand. | |
Johann Wolfgang von Goethe | Difficulties increase the nearer we get to the goal. | |
Byron Pulsifer | Fate is in your hands and no one elses | |
Lao Tzu | Be the chief but never the lord. | |
Carl Sandburg | Nothing happens unless first we dream. | |
Aristotle | Well begun is half done. | |
Yogi Berra | Life is a learning experience, only if you learn. |
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |